package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.acceptRFCPanel;

import java.awt.BorderLayout;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.Mainframe;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.SimpleCMSPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.acceptRFCPanel.acceptRFCPanelSubs.AcceptListPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.acceptRFCPanel.acceptRFCPanelSubs.AcceptRFCFunctionpanel;

public class AcceptRFCPanel extends SimpleCMSPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private AcceptRFCFunctionpanel functionpanel;
	private AcceptListPanel listPanel;
	private Mainframe mainframe;
	
	public AcceptRFCPanel(String name, Mainframe parent) {
		super(name, parent);
		
		this.mainframe = parent;
		
		this.setLayout(new BorderLayout());
	
		this.functionpanel = new AcceptRFCFunctionpanel(this);
		this.listPanel = new AcceptListPanel(this);
		
		this.add(functionpanel,BorderLayout.EAST);
		this.add(listPanel, BorderLayout.CENTER);
		
	}

	public Mainframe getMainframe() {
		return mainframe;
	}

	public AcceptRFCFunctionpanel getFunctionpanel() {
		return functionpanel;
	}

	public AcceptListPanel getListPanel() {
		return listPanel;
	}

	

}
